using System;
using System.Collections.Generic;
using System.Text;
using THSERP.BusinessEntities;
using THSERP.BaseProvider;
namespace THSERP.Modules.ProjectMaterial
{
    public class ProjectMaterialModule : BaseModuleERP
    {
        public ProjectMaterialModule()
        {
            Name = "ProjectMaterial";
            ProjectMaterialEntities entity = new ProjectMaterialEntities();
            CurrentModuleEntity = entity;
            CurrentModuleEntity.Module = this;
            InitializeModule();
        }

        public void AddItemToPMProjectMaterialItemsList()
        {
            ProjectMaterialEntities entity = (ProjectMaterialEntities)CurrentModuleEntity;
            entity.PMProjectMaterialItemsList.AddObjectToList();
        }

        public void ChangeItemFromPMProjectMaterialItemsList()
        {
            ProjectMaterialEntities entity = (ProjectMaterialEntities)CurrentModuleEntity;
            entity.PMProjectMaterialItemsList.ChangeObjectFromList();
        }

        public void DeleteItemFromPMProjectMaterialItemsList()
        {
            ProjectMaterialEntities entity = (ProjectMaterialEntities)CurrentModuleEntity;
            entity.PMProjectMaterialItemsList.RemoveSelectedRowObjectFromList();
        }
    }
}
